package com.example.sell.exception;

import com.example.sell.enums.ResultEnum;

/**
 * @author: vince_zww
 * @date: 2020/8/17 16:30
 * @desceription:
 */
public class WechatOrderException extends RuntimeException {

    private Integer code;

    public WechatOrderException(ResultEnum resultEnum){
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }

    public WechatOrderException(Integer code,String message){
        super(message);
        this.code = code;
    }

}
